package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.AbilityassessmentSocialMapper;
import com.ruoyi.merchant.domain.AbilityassessmentSocial;
import com.ruoyi.merchant.service.IAbilityassessmentSocialService;

/**
 * 能力评估-社会参与Service业务层处理
 * 
 * @author chengxin.ju
 * @date 2023-12-24
 */
@Service
public class AbilityassessmentSocialServiceImpl implements IAbilityassessmentSocialService 
{
    @Autowired
    private AbilityassessmentSocialMapper abilityassessmentSocialMapper;

    /**
     * 查询能力评估-社会参与
     * 
     * @param ID 能力评估-社会参与主键
     * @return 能力评估-社会参与
     */
    @Override
    public AbilityassessmentSocial selectAbilityassessmentSocialByID(String ID)
    {
        return abilityassessmentSocialMapper.selectAbilityassessmentSocialByID(ID);
    }

    /**
     * 查询能力评估-社会参与列表
     * 
     * @param abilityassessmentSocial 能力评估-社会参与
     * @return 能力评估-社会参与
     */
    @Override
    public List<AbilityassessmentSocial> selectAbilityassessmentSocialList(AbilityassessmentSocial abilityassessmentSocial)
    {
        return abilityassessmentSocialMapper.selectAbilityassessmentSocialList(abilityassessmentSocial);
    }

    /**
     * 新增能力评估-社会参与
     * 
     * @param abilityassessmentSocial 能力评估-社会参与
     * @return 结果
     */
    @Override
    public int insertAbilityassessmentSocial(AbilityassessmentSocial abilityassessmentSocial)
    {
        return abilityassessmentSocialMapper.insertAbilityassessmentSocial(abilityassessmentSocial);
    }

    /**
     * 修改能力评估-社会参与
     * 
     * @param abilityassessmentSocial 能力评估-社会参与
     * @return 结果
     */
    @Override
    public int updateAbilityassessmentSocial(AbilityassessmentSocial abilityassessmentSocial)
    {
        return abilityassessmentSocialMapper.updateAbilityassessmentSocial(abilityassessmentSocial);
    }

    /**
     * 批量删除能力评估-社会参与
     * 
     * @param IDs 需要删除的能力评估-社会参与主键
     * @return 结果
     */
    @Override
    public int deleteAbilityassessmentSocialByIDs(String[] IDs)
    {
        return abilityassessmentSocialMapper.deleteAbilityassessmentSocialByIDs(IDs);
    }

    /**
     * 删除能力评估-社会参与信息
     * 
     * @param ID 能力评估-社会参与主键
     * @return 结果
     */
    @Override
    public int deleteAbilityassessmentSocialByID(String ID)
    {
        return abilityassessmentSocialMapper.deleteAbilityassessmentSocialByID(ID);
    }

    @Override
    public AbilityassessmentSocial selectAbilityassessmentSocialByBaseId(String baseId) {
        return abilityassessmentSocialMapper.selectAbilityassessmentSocialByBaseId(baseId);
    }
}
